package lab02.Test12;

/**
 * Created by mac on 2017/10/25.
 */
public class Shape {

    //属性

    float length;
    float width;

    //方法:分别用来求面积和周长

    double area(){
        return length*width;
    }
    double perimeter(){
        return (length+width)*2;
    }
}



